#include <iostream>
using namespace std;

int main()
{
    double a = 21.898;
    float b = 10.20;
    int c;

    c = (int)a;
    cout << c << endl;

    c = (int)b;
    cout << c << endl;

    // pointer
    int *a_1 = &c;
    a_1 = &c;
    cout << *a_1 << endl;

    return 0;
}